#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: title011.py 
@version:
@time: 2023/05/14 
将一个字符串str的内容颠倒过来，并输出。
"""
while True:
    try:
        s = input()
        print(s[::-1])
    except:
        break